/******************************************************************************
 * FILE NAME:
 *  trs_linked_list_def.h
 *
 * DESCRIPTION:
 * This file contains the function declarations and MARCOS
 * of linked-list.
 *
 * DESIGN REFERENCE:
 *
 *
 * REVISION HISTORY   :
 * Date            Author               REASON
 * 06.08.2013      Thuan Nguyen         Creation
 *
 * Copyright 2005, NET
 * ***************************************************************************/

#ifndef LINKED_LIST_THREAD_H_
#define LINKED_LIST_THREAD_H_

#include<stdio.h>
#include<stdlib.h>
#include<string.h>
#include<unistd.h>
#include<pthread.h>
#include<netinet/in.h>

#include"../../common/h/logging.h"
#include"trs_types_def.h"

void* trs_add_empty_item_to_ll_func(threads_transport_t *p_thread_list);
U8 trs_init_thread_ll_func(thread_info_t thread_info);
void* trs_get_tail_from_thread_ll_func(threads_transport_t *p_thread_list);
U8 trs_add_item_to_ll_func(threads_transport_t *p_thread_list,thread_info_t *thread_info);
U8 trs_rm_thread_from_ll_func(threads_transport_t *p_thread_list,thread_info_t *thread_info);
void trs_list_all_thread_into_ll_func(void);
void* trs_find_items_into_ll_func(threads_transport_t *p_thread_list,thread_info_t *thread_item);
U8 trs_rm_empty_item_from_ll_func(threads_transport_t *p_thread_list,threads_transport_t *p_removed_thread);
U8 trs_check_connection_from_ll_func(threads_transport_t *p_thread_list, \
		struct sockaddr_in dst_addr);
#endif

